/*
 * FeaturePage
 *
 * List all the features
 */
import React from 'react';
import Helmet from 'react-helmet';

import {
    bannerFetch
} from './../../utils/request';

export default class FeaturePage extends React.Component {

    static propTypes = { // 判断类型
    }

    constructor() {
        super();
        this.state = {}; // 初始化状态
    }

    componentWillMount() { // 页面渲染之前

    }

    componentDidMount() { // 页面渲染之后
        bannerFetch()
            .then(v => v.success ? Promise.resolve(v) : Promise.reject(v))
            .then(v => {
                console.log(v)
            })
            .catch(e => {
                console.log(e)
            })
    }

    shouldComponentUpdate() {
        return false;
    }

    render() {
        return (
            <div>
                <Helmet title='Feature Page'
                    meta={
                        [{
                            name: 'description',
                            content: 'Feature page of React.js Boilerplate application'
                        } ]
                    }
                />
                asdfasdfasdfsafsadfasd
            </div>
        );
    }
}
